import Vue from 'vue'
import 'normalize.css/normalize.css'
import ELEMENT from 'element-ui'
if (process.env.NODE_ENV === 'development') {
  require('element-ui/lib/theme-chalk/index.css')
}
import './styles/element-variables.scss'
import axios from './utils/request'
import permission from './directive/permission'
import '@/styles/index.scss'
import App from './App'
import store from './store'
import router from './router'
import './icons'
import enterNext from './directive/enterNext'
import './permission'
import * as filters from './filters'
Vue.use(enterNext)
Vue.use(ELEMENT)
Vue.use(permission)
import Pagination from '@/components/Pagination'
Vue.component('Pagination', Pagination)
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
Vue.config.productionTip = false
Vue.prototype.$axios = axios
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
